package com.yigo.bsc.infra.repo.dataobject;

import com.baomidou.mybatisplus.annotation.IdType;
import com.tangzc.mpe.autotable.annotation.Column;
import com.tangzc.mpe.autotable.annotation.ColumnId;
import com.tangzc.mpe.autotable.annotation.Table;
import com.tangzc.mpe.autotable.strategy.mysql.data.MysqlTypeConstant;
import com.yigo.framework.base.BasePO;
import lombok.Data;

/**
 * @author chenzl1
 */
@Data
@Table(value = "bsc_dict_item", comment = "字典选项")
public class BscDictItemPO extends BasePO {
    /**
     * 主键Id
     */
    @ColumnId(mode = IdType.AUTO, comment = "id主键", type = MysqlTypeConstant.INT, length = 10)
    private Long id;
    /**
     * 字典类型编码,拼音首字母全拼+其他的第一个字母
     */
    @Column(comment = "字典类型编码,拼音首字母全拼+其他的第一个字母", length = 30, notNull = true)
    private String dictTypeCode;
    /**
     * 字典选项名称
     */
    @Column(comment = "字典选项名称", length = 30, notNull = false)
    private String dictItemCode;
    /**
     * 字典选项名称
     */
    @Column(comment = "字典选项名称", length = 30, notNull = false)
    private String dictItemName;
    /**
     * 排序编号，小的在前
     */
    @Column(comment = "排序编号，小的在前", length = 10, notNull = false)
    private Integer orderNum;
    /**
     * 状态：0-可用；1-禁用
     */
    @Column(comment = "状态：0-可用；1-禁用", length = 10, defaultValue = "0")
    private Integer itemStatus;
    /**
     * 备注
     */
    @Column(comment = "备注", length = 30, notNull = false)
    private String remark;
}
